<?php
?>
<script type="text/javascript">
		$(document).ready(function() {	
			//clinique
			var $idinfoclinique =  $('#idinfoclinique');
		
			//patient
			var $idinfopatient =  $('#idinfopatient');
		
			//commentaire
			var $idcompatient =  $('#idcompatient');
			
			//newsletter
			var $idenvoinewsletter =  $('#idenvoinewsletter');
			var $idabonnenewsletter =  $('#idabonnenewsletter');
			var $idnewsletters =  $('#idnewsletters');
			
			//Système
			var $moncompte =  $('#moncompte');
			var $idnotification =  $('#idnotification');

			$idinfoclinique.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/admin/listclinic";					
					var data = "<IFRAME src='"+$url+"' width=100% height=600 scrolling=no frameborder=0 ></IFRAME>";
					$("#content1").html(data);
				});
			
			$idinfopatient.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/admin/listpatient";					
					var data = "<IFRAME src='"+$url+"' width=100% height=600 scrolling=no frameborder=0 ></IFRAME>";
					$("#content1").html(data);
				});
				
			$idcompatient.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/admin/listcomment";					
					var data = "<IFRAME src='"+$url+"' width=100% height=600 scrolling=no frameborder=0 ></IFRAME>";
					$("#content1").html(data);
				});
				
			$idenvoinewsletter.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/newsletter/insert";					
					var data = "<IFRAME src='"+$url+"' width=100% height=600 scrolling=no frameborder=0 ></IFRAME>";
					$("#content1").html(data);
				});
			
			 $idabonnenewsletter.on('click', function() {
					//alert("Ato");
				 	var $url = "<?php echo base_url();?>index.php/newsletter/abonne";
					$('#content1').load($url);
				});	
			 $idnewsletters.on('click', function() {
				 	var $url = "<?php echo base_url();?>index.php/newsletter/listnewsletter";
				 	var data = "<IFRAME src='"+$url+"' width=100% height=600 scrolling=no frameborder=0 ></IFRAME>";
					//$("#content1").load($url);
					$("#content1").html(data);
				});	
			

			//Système mon compte	
			/*$moncompte.on('click', function() {
					var $idlogin =  $('#idlogin');
				 	var $url = "<?php echo base_url();?>index.php/client/moncompte?idlogin="+$idlogin.val();
					
					var data = "<IFRAME src='"+$url+"' class='scroll-box' frameborder=0 ></IFRAME>";
					$("#content1").html(data);
					
					//$('#content1').load($url);
			});*/
			
		});
		
</script>
<script type="text/javascript">
		$(function(){
			$("#dropdown").juizDropDownMenu({
				'showEffect' : 'fade',
				'hideEffect' : 'slide'
			});
		});
</script>
